<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #main {
            width: 700px;
            height: 500px;
        }
    </style>
</head>
<body>

<div id="main"></div>

<script src="http://lib.baomitu.com/echarts/4.7.0/echarts.min.js">

</script>

<script>
    const dom = document.getElementById('main')
    const myChart = echarts.init(dom)

    const option = {
        xAxis: {
            data: ['html', 'css', 'js'],
            boundaryGap: 0, //设置两边不留白
        },
        yAxis: {},
        series: {
            type: 'line',
            data: [30, 20, 40],
            smooth: true,
            itemStyle: {
                color: '#00acec'
            },
            areaStyle: {
                color: '#00acec',
                opacity: 0.2,
            },
            symbolSize: 30, //圆圈点大小
            symbol: 'rect', //圆圈变矩形，也可以自定义图片
        }
    }

    myChart.setOption(option)
</script>
</body>
</html>
